package tour.board.service;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Map;

import tour.board.to.CmBoard;
import tour.board.to.RecommendTO;
import tour.board.to.ReCmBoard;



public interface CmBoardService {

	public abstract void writeContent(CmBoard bto) throws SQLException;

	public abstract ArrayList<CmBoard> getBoardAllList() throws SQLException;

	public abstract CmBoard getContentByNO(int no) throws SQLException;

	public abstract CmBoard getContentByNoForForm(int no) throws SQLException;

	public abstract void modifyContent(CmBoard bto) throws SQLException;

	public abstract void deleteContentByNO(int no) throws SQLException;

	public abstract void replyContent(CmBoard bto) throws SQLException;

	//페이징 리스트 조회
	public abstract Map getBoardListByPage(int page) throws SQLException;

	
	//추천
	public abstract String recommend(RecommendTO rto) throws SQLException;

	public abstract void updateCommendCount(int no) throws SQLException;
	
	public abstract void insertRecommendInfo(RecommendTO rto) throws SQLException;

	
	public abstract ArrayList replyList();

	public abstract void addReply(ReCmBoard reCmBoard);

	public abstract ArrayList getReplyByNo(int no);

	public abstract ArrayList mainList();

	public abstract ArrayList findTitle(String find);

	public abstract ArrayList findWriter(String find);

}
